package com.ykdl.member.kid.beans;

import java.io.Serializable;
import java.util.ArrayList;

import net.wxxr.http.interfaces.IJsonParser;
import android.text.TextUtils;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

public class PersonBean implements Serializable, IJsonParser {
	
	private ArrayList<DiaryBean> diaries;
	private long diaries_count;
	private long fans_count;
	private ArrayList<FavoriteBean> favorites;
	private long favorites_count;
	private long friends_count;
	private ArrayList<PostBean> posts;
	private long posts_count;
	private ArrayList<TopicBean> topics;
	private long topics_count;
	private UserBean actor;
	private long visit_count;
	
	public ArrayList<DiaryBean> getDiaries() {
		return diaries;
	}

	public void setDiaries(ArrayList<DiaryBean> diaries) {
		this.diaries = diaries;
	}

	public ArrayList<FavoriteBean> getFavorites() {
		return favorites;
	}

	public void setFavorites(ArrayList<FavoriteBean> favorites) {
		this.favorites = favorites;
	}

	public ArrayList<PostBean> getPosts() {
		return posts;
	}

	public void setPosts(ArrayList<PostBean> posts) {
		this.posts = posts;
	}

	public ArrayList<TopicBean> getTopics() {
		return topics;
	}

	public void setTopics(ArrayList<TopicBean> topics) {
		this.topics = topics;
	}

	public long getDiaries_count() {
		return diaries_count;
	}

	public void setDiaries_count(int diaries_count) {
		this.diaries_count = diaries_count;
	}

	public long getFans_count() {
		return fans_count;
	}

	public void setFans_count(int fans_count) {
		this.fans_count = fans_count;
	}


	public long getFavorites_count() {
		return favorites_count;
	}

	public void setFavorites_count(int favorites_count) {
		this.favorites_count = favorites_count;
	}

	public long getFriends_count() {
		return friends_count;
	}

	public void setFriends_count(int friends_count) {
		this.friends_count = friends_count;
	}

	public long getPosts_count() {
		return posts_count;
	}

	public void setPosts_count(int posts_count) {
		this.posts_count = posts_count;
	}

	public long getTopics_count() {
		return topics_count;
	}

	public void setTopics_count(int topics_count) {
		this.topics_count = topics_count;
	}
	
	public UserBean getActor() {
		return actor;
	}

	public void setActor(UserBean actor) {
		this.actor = actor;
	}

	public long getVisit_count() {
		return visit_count;
	}

	public void setVisit_count(int visit_count) {
		this.visit_count = visit_count;
	}

	@Override
	public IJsonParser parse(String json) throws Exception {
		if (!TextUtils.isEmpty(json)) {
			GsonBuilder builder = new GsonBuilder();
			Gson gson = builder.create();
			return gson.fromJson(json, PersonBean.class);
		}
		return null;
	}

}
